//
//  PASceneDirector.m
//  PAQianZhuanzhuan
//
//  Created by Gavin Zhang on 8/1/13.
//  Copyright (c) 2013 平安付. All rights reserved.
//

#import "PAViewControllerManager.h"
#import "PABaseViewController.h"
#import "PALoginViewController.h"
static PAViewControllerManager *_sharedInstance;

@implementation PAViewControllerManager
@synthesize rootViewController;
@synthesize currentViewController;
#pragma mark - singleton
+(PAViewControllerManager *)sharedInstance
{
    if (!_sharedInstance) {
        _sharedInstance = [[super allocWithZone:NULL] init];
    }
    return _sharedInstance;
}
+(id)allocWithZone:(NSZone *)zone
{
    return [PAViewControllerManager sharedInstance];
}
-(id)copyWithZone:(NSZone *)zone
{
    return self;
}


#pragma mark - 
- (void)prepareLogin
{
    PALoginViewController *loginVC = [[PALoginViewController alloc] initWithNibName:nil bundle:nil];
    loginVC.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
    [self.currentViewController presentModalViewController:loginVC animated:YES];
}

@end
